﻿using System.Runtime.Serialization;

namespace MyAMS.WebServer.Models
{
    /// <summary>
    /// 许可类型
    /// </summary>
    [DataContract]
    public enum PermissionType : byte
    {
        /// <summary>
        /// 无
        /// </summary>
        [EnumMember]
        None = 1,

        /// <summary>
        /// 读
        /// </summary>
        [EnumMember]
        Read = 2,

        /// <summary>
        /// 列
        /// </summary>
        [EnumMember]
        List = 4,

        /// <summary>
        /// 添
        /// </summary>
        [EnumMember]
        Add = 8,

        /// <summary>
        /// 删
        /// </summary>
        [EnumMember]
        Remove = 16,

        /// <summary>
        /// 改
        /// </summary>
        [EnumMember]
        Modify = 30,
    }
}
